/**
 * async/await是generator的语法糖
 */

function* gen() {
  yield console.log(1);
  yield console.log(2);
  yield console.log(3);
  yield console.log(4);
}

const g = gen();
// console.log(g);
console.log(g.next());
g.next();
g.next();

//  被async 包裹的函数，返回值为primise
async function a() {}
console.log(a());
